*{
    /* 去除浏览器自带的内外间距 */
    margin: 0;
    padding: 0;
}
.head{
    width: 100%;
    height: 160px;
    background-color: #d9232e;
    margin: 0 auto; /*居中*/
    
}

.head h2{
    width: 100%;
    height: 80px;
    /* background-color: antiquewhite; */
    position: relative;
    top: 40px;    /*当前容器垂直居中于 父容器中*/
    line-height: 80px; /*文本垂直居中，值 = height*/
    text-align: center; /*水平居中*/
    font-size: 50px;  /*字体大小*/
    color: white;   /*文字颜色*/
}

.search{
    width: 320px;
    height: 50px;
    /* background-color: aquamarine; */
    margin: 0 auto; /*居中*/
    margin-top: 20px;/*上间距*/
}
/*搜索输入框*/
.search input{
    width: 220px;
    height: 20px;
    padding-left: 15px; /*内间距*/
    padding-right: 15px;
    outline: none;
}
/* 搜索按钮 */
.search button{
    width: 60px;
    height: 25px;
    border: none;  /*无边框*/
    background-color: #d9232e;
    color: white;
}


/* 菜单类别 */
.dish_list{
    width: 110px;
    height: 50px;
   /* background-color: rgb(196, 194, 194);*/
    float: left;
    margin-left: 50px;
    margin-bottom: 50px;
}

.nodata{
    display: block;
    width: 100%;
    height: 60px;
    /*background-color: #d98d00;*/
     text-align: center;
    line-height:  60px;
    margin-top: 100px;
}

.dish_list button{
    width: 100%;
    height: 100%;
    cursor: pointer;

    border: 1px solid #d9232e;   /*边框*/
     border-radius: 20px;  /*圆角*/
     position: relative;
     top: 15px;  /*垂直居中，（80-50）/2  = 15px*/
     /*margin-right: 14px;  !*每个按钮右间距*!*/
     color: #d9232e;  /*按钮文字颜色*/
}
.first-item{
    margin-left: 200px;
}
/* 菜单列表 */
.dishes{
    width: 100%;
    margin:  0 auto;
}
.dishes ul{
    list-style: none;
}
.dishes ul li{
    width: 282px;
    height: 278px;
    border: 1px solid rgb(235, 233, 233);
    float: left;
    margin-left: 20px;
    margin-right: 10px;
    margin-bottom: 20px;
    border-radius: 4px; /*圆角*/
}
.dishes img{
    width: 100%;
    height: 180px;
}
.dishes  .dish_name{
    display: block;  /*块级元素，占据一整行*/
    width: 100%;
    height: 30px;
    line-height: 30px;  /*行高，垂直居中*/
    font-size: 20px; /*字体大小*/
    text-align: center;  /*文本居中*/
}
.dishes  .dish_price{
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;
    font-size: 20px; 
    text-align: center;
    color: #d9232e;
}